<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

  <style>

    #gy{
      color: green;
    }
    .zf{
      color: yellow;
    }
    input[type="text"],#apple,#banner{
      background: red;
    }
    body >div>div>p{
      color: pink;
    }
    body div div p{
      background: yellow;
    }
    a:link{
      color: green;
    }
    a:visited{
      color: red;
    }
    a:hover{
      color: yellow;
    }
    a:active{
      color: pink;
    }




  </style>


</head>
<body>
<ul>
  <li>刘备</li>
  <li id = "gy">关羽</li>
  <li class="zf">张飞</li>
</ul>
<p id = "banner">香蕉</p>
<p class="zf" id="apple">苹果</p>
<input type="text">
<input type="password">
<div>
  <p>p1</p>
  <div><p>p2</p></div>
  <div><div><p>p3</p></div></div>
</div>
<a href="http://www.tedu.cn">达内官网</a>
</body>
</html>